home *** CD-ROM | disk | FTP | other *** search
/ Softwarová Záchrana 3 / Softwarova-zachrana-3.bin / Xteq X-Setup / xqdcXSP-Setup-EN.exe / {app} / plugins / XQ MSO2003 User Places 3 View.xpl < prev    next >
Text File  |  2004-01-29  |  2KB  |  76 lines

  1. "FILE"="Xteq Systems X-Setup Plugin 6.0"
  2. "TYPE"="7"
  3. "COUNT"="5"
  4. "UIPATH"="Program Options\Microsoft Office\MS Office 2003\Open/Save Dialog\User Defined Place 3"
  5. "NAME"="View State"
  6. "VERSION"="1.10"
  7. "LANGUAGE"="VBScript"
  8. "TEXT 1"="(Default)"
  9. "TEXT 2"="List View"
  10. "TEXT 3"="Detail View"
  11. "TEXT 4"="Summary View"
  12. "TEXT 5"="Preview View"
  13. "DESCRIPTION 1"="Normally, Office uses the same view you have recently used inside the Open/Save dialog for your user defined place."
  14. "DESCRIPTION 2"="With this setting, you can enforce a specific view when you open the user defined place."
  15. "DESCRIPTION 3"="Please note that this setting will only be applied to the folder of the user defined place itself. If you change to a subfolder of that folder, Office will apply the default view again. "
  16. "AUTHOR"="Xteq Systems"
  17. "CONTACTURL"="http://www.xteq.com/"
  18. "COPYRIGHT"="Copyright ⌐ Xteq Systems - All Rights Reserved"
  19. "COMMENT 1"="Found here: http://www.frontpages-web-hosting.net/support/frontpage.2003.how.to.826214.htm"
  20.  
  21.  
  22.  
  23.  
  24. sPlaceNameID=3
  25. sPCheck="HKCU\Software\Microsoft\Office\11.0\"
  26. sV1=sPCheck & "Common\Open Find\Places\UserDefinedPlaces\Place" & sPlaceNameID & "\View"
  27. ' 1=List, 2=Details, 3=Summary, 4=Preview, 5=Thumbnails  
  28.  
  29.  
  30. Sub Plugin_Initialize 
  31.  if RegPathExists(sPCheck) then
  32.     i=RegReadValue(sV1)
  33.    
  34.     if IsEmpty(i)=true then setuielement 1,true
  35.     if i=1 then setuielement 2,true
  36.     if i=2 then setuielement 3,true
  37.     if i=3 then setuielement 4,true
  38.     if i=4 then setuielement 5,true
  39.  else
  40.     Call Disable()
  41.  end if
  42. End Sub
  43.  
  44. Sub Plugin_CheckData(ElementIndex)
  45. End Sub
  46.  
  47. Sub Plugin_Apply(ElementIndex,ElementSubIndex)
  48.  if GetUIElement(1)=true then
  49.     v=0
  50.  else
  51.     if GetUIElement(2)=true then
  52.        v=1
  53.     else
  54.        if GetUIElement(3)=true then
  55.           v=2
  56.        else
  57.           if GetUIElement(4)=true then
  58.              v=3
  59.           else
  60.              v=4
  61.           end if
  62.        end if
  63.     end if
  64.  end if
  65.  
  66.  
  67.  if v>0 then 
  68.     Call RegWriteValue(sV1,v,2)
  69.  else 
  70.     if RegValueExists(sV1) then Call RegDeleteValue(sV1)
  71.  end if
  72. End Sub
  73.  
  74. Sub Plugin_Terminate 
  75. End Sub
  76.